package com.yyx.service;


import com.yyx.mapper.TestMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


@Component
public class TestServiceImpl implements TestService {

//    @Autowired
//    private TestMapper testMapper;

    @Resource(name = "testMapper")
    private TestMapper testMapper;

    @Override
    public void query() {


        System.out.println(  testMapper.getUser());
    }
}
